﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CQIE.JonJack.Models.Tabels
{
    public class User
    {
        public int Id { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 学号/工号
        /// </summary>
        public string SchoolNumber { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string PassWord { get; set; }
        /// <summary>
        /// 是否通过审核
        /// </summary>
        public bool IsAccess {  get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsDisabled { get; set; }

        /// <summary>
        /// 用户的借书记录
        /// </summary>
        public List<BorrowRecord>? BorrowRecords { get; set; }

        /// <summary>
        /// 用户的读书历史
        /// </summary>
        public List<BookHistory>? BookHistorys { get; set; }


        public int ? RoleId { get; set; }  
        //用户的角色
        public Role Role { get; set; } 
    }
}
